﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Templay;

namespace Sample2.Tags
{
    public class File : Tag
    {

        private FileManager manager;

        public string Path { get; set; }

        public override void Process(params object[] parameters)
        {
            using (manager = new FileManager(Path))
            {
                ProcessChildrenBy<IWriter>(x => x.Write(manager));
            }

            System.Diagnostics.Process.Start(Path);
        }

    }
}
